<template>
  <div class="service-line">
    <p><img :src="callcenterImage" />欢迎使用售后宝呼叫中心</p>
    <div class="info">
      <div class="info-item">
        <i class="iconfont icon-dianhua1"></i>
        <div class="item-content">
          <p>呼叫中心号码：</p>
          <span>{{ accountInfo.hotLine }}</span>
          <p>外呼号码：</p>
          <span>{{ accountInfo.displayPhone }}</span>
        </div>
      </div>
      <div class="info-item">
        <i class="iconfont icon-zuoxi"></i>
        <div class="item-content">
          <p>坐席：</p>
          <div class="align-items-center">
            <div>{{ accountInfo.agentNum }}</div>
            <el-tooltip content="已配置坐席数/购买坐席数">
              <i class="iconfont icon-info icon-agent-tip"></i>
            </el-tooltip>
          </div>
        </div>
      </div>
      <div class="info-item">
        <i class="iconfont icon-shijian"></i>
        <div class="item-content">
          <p>到期时间：</p>
          <span>{{ accountInfo.endTime }}</span>
        </div>
      </div>
      <div class="info-item">
        <i class="iconfont icon-huafei"></i>
        <div class="item-content">
          <p>话费余额：</p>
          <span class="money">{{ accountInfo.cost }}元</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { getOssUrl } from '@src/util/assets' 
const callcenterImage = getOssUrl('/callcenter.png')
export default {
  name: 'callcenter-hot-line',
  props: {
    accountInfo: {
      type: Object,
      default: () => ({}),
    },
  },
  data() {
    return {
      callcenterImage
    };
  },
};
</script>

<style lang="scss">
.service-line {
  background: #fff;
  p {
    font-size: 20px;
    font-weight: 500;
    padding: 15px;
    margin: 0;
    img {
      width: 36px;
      height: 36px;
      margin-right: 10px;
    }
  }
  .info {
    display: flex;
    border-top: 1px solid rgba(235, 237, 237, 1);
    border-bottom: 1px solid rgba(235, 237, 237, 1);
    .info-item {
      padding: 12px;
      display: flex;
      flex: 1;
      box-sizing: border-box;
      &:not(:last-of-type){
        .item-content {
        border-right: 1px solid rgba(235, 237, 237, 1);
        }
      }
      i {
        margin-top: 5px;
        font-size: 24px;
        color: #55b7b4;
      }
      .item-content {
        flex: 1;
        height: 232px;
        text-align: left;
        margin-left: 10px;
        .icon-agent-tip {
          color: #b9bfbd;
          margin-left: 10px;
          margin-top: 0;
          font-size: 18px;
        }
        p {
          padding: 0;
          font-size: 16px;
          margin: 10px 0;
        }
        span {
          font-size: 14px;
          display: block;
          margin-bottom: 8px;
        }
        .money {
          color: #fb602c;
        }
      }
    }
  }
}
</style>
